package myproject.CarRentalSystem;

public abstract class Car {
    private String brand;
    private int dayOfMoney;
    private String plate;//车牌号
    private boolean state;

    public Car() {
    }

    public Car( String brand, int dayOfMoney, String plate,boolean state) {

        this.brand = brand;
        this.dayOfMoney = dayOfMoney;
        this.plate = plate;
        this.state = state;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getDayOfMoney() {
        return dayOfMoney;
    }

    public void setDayOfMoney(int dayOfMoney) {
        this.dayOfMoney = dayOfMoney;
    }

    public String getPlate() {
        return plate;
    }

    public void setPlate(String plate) {
        this.plate = plate;
    }

    public boolean getState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    @Override
    public abstract String toString();


    public abstract float  rentMoney(int day);

}
